package com.my.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 房间
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-30
 */
@TableName("room")
public class Room extends Model<Room> {

    private static final long serialVersionUID = 1L;

    /**
     * 房间状态整理显示id
     */
	private Long id;
    /**
     * 1.入住 2.空房 3.待打扫
     */
	@TableField("room_status")
	private Long roomStatus;
    /**
     * 房间标签属性
     */
	@TableField("room_label")
	private String roomLabel;
    /**
     * 该房间对应的套餐ID
     */
/*	@TableField("room_meal")
	private Long roomMeal;*/
    /**
     * 房间编码
     */
	@TableField("room_value")
	private String roomValue;
    /**
     * 房间名字
     */
	@TableField("room_name")
	private String name;

   /**
     * 房间状态名
     */
	@TableField(exist = false)
	private String hoomState;
	/**
     * 套餐名 关联查
     */
	@TableField(exist = false)
	private String mealName;

	@TableField("areaid")
	private Long areaid;


	public Long getAreaid() {
		return areaid;
	}

	public void setAreaid(Long areaid) {
		this.areaid = areaid;
	}


	public String getMealName() {
		return mealName;
	}

	public void setMealName(String mealName) {
		this.mealName = mealName;
	}

	public String getHoomState() {
		return hoomState;
	}

	public void setHoomState(String hoomState) {
		this.hoomState = hoomState;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getRoomStatus() {
		return roomStatus;
	}

	public void setRoomStatus(Long roomStatus) {
		this.roomStatus = roomStatus;
	}

	public String getRoomLabel() {
		return roomLabel;
	}

	public void setRoomLabel(String roomLabel) {
		this.roomLabel = roomLabel;
	}



	public String getRoomValue() {
		return roomValue;
	}

	public void setRoomValue(String roomValue) {
		this.roomValue = roomValue;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Room{" +
				"id=" + id +
				", roomStatus=" + roomStatus +
				", roomLabel='" + roomLabel + '\'' +
				", roomMeal=" +
				", roomValue='" + roomValue + '\'' +
				", name='" + name + '\'' +
				'}';
	}
}
